package structural.composite;

public abstract class CatalogComponenet {
    public void add(CatalogComponenet catalogComponenet){
        throw new UnsupportedOperationException("不支持添加操作");
    }

    public void remove(CatalogComponenet catalogComponenet){
        throw new UnsupportedOperationException("不支持删除操作");
    }

    public String getName(CatalogComponenet catalogComponenet){
        throw new UnsupportedOperationException("不支持获取名字操作");
    }

    public String getPrice(CatalogComponenet catalogComponenet){
        throw new UnsupportedOperationException("不支持获取价格操作");
    }

    public void print(){
        throw new UnsupportedOperationException("不支持打印操作");
    }
}
